package com.briup.pts.service;

import com.briup.pts.domain.bean.FenceHouse;
import com.briup.pts.domain.vo.FenceHouseWithChildren;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * @author 25095
 * @description
 * @data 2024/11/27-11:17
 */
public interface FenceHouseService {
    PageInfo<FenceHouse> pageQueryByCondition(Integer pageNum,
                                               Integer pageSize,
                                              String fhName);

    FenceHouseWithChildren selectById(String fhId);

    void saveOrUpdate(FenceHouse fh);

    void deleteById(String hId);

    void deleteByIdAll(@NotNull(message = "id必须存在") @Min(value = 1L, message = "id必须有效") List<String> ids);
}
